﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sparkle.Lib;
using Sparkle.Lib.Attributes;
using System.ComponentModel.DataAnnotations;

namespace Sparkle.Demo.Model
{
    public  class Person
    {
        [Visualization(Visible = false)]
        public long Id { get; set; }

        [DisplayAttribute(Name = "First Name", GroupName = "Personal", Order = 1)]
        public string FName { get; set; }

        [DisplayAttribute(Name = "Last Name", GroupName = "Personal", Order = 2)]
        public string LName { get; set; }

        [DisplayAttribute(Name = "Active", GroupName = "Employeement", Order=4)]
        public bool Active { get; set; }

        [DisplayAttribute(Name = "Date of Birth", GroupName = "Personal", Order = 3)]
        public Date DOB { get; set; }

        [DisplayAttribute(Name = "Address Details", GroupName = "Personal", Order = 4)]
        [Visualization( LableAt = LabelLocation.Top )]
        public Address AddressDetails { get; set; }

        public Person()
        {
            AddressDetails = new Address();
        }

    }
}
